<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Turn it Around</title>
<style>
.invoicebox{
    width: 850px;
    font: normal 13px/120% arial;
    color: #333;
}
.inin{
    display: block;
    margin: 40px 21px;
    width: 610px;
}

a,.purple{
    color: #810751;
    text-decoration: underline;
}

.purple{
    text-decoration: none;
}

a:hover{
    text-decoration: none;
}

img{
    border: 0px;
}

h2{
    font: bold 25px arial;
    color: #810751;
}
</style>
</head>
<body>
<div class="invoicebox"><div class="inin">
<a href="<?php echo site_url()?>"><img src="<?php echo base_url()?>xhtml/logo_tia_mail.jpg" width="280" height="62" /></a>
<br /><br />
<h2 class="purple">ALERT!</h2>

A new ALERT! has been posted by <a href="<?php echo $network_url?>"><?php echo $network_name?></a> <br />
<br />
<?php 
    // date formatting
    $alert_unix = strtotime($created_date);
    $alert_time = date('H:i',$alert_unix);
    $alert_date = date('Y-m-d',$alert_unix);
?>
<strong class="purple">Alert!</strong> <?php echo substr($short_alert, 0, 100);?>....<br />
Posted on <?php echo $alert_date ?> at <?php echo $alert_time ?><br />
<br />
<span class="purple">Alert details:</span><br />
<?php echo substr($alert_detail, 0, 100); ?>.... <br /> 
<strong class="purple">READ MORE >></strong> 
<a href="<?php echo $alert_url?>">click here to view this alert online</a><br />
<br />
This alert has been send to you based on your Alert prefrences on the Turn It Around website.<br />
Should you want to change your Crime Alert settings, go to Your Profile > Settngs and set your ALERTS<br />
preferences there.<br />
<br />
The Turn it Around Team<br />
<a href="http://www.turnitaround.co.za">www.turnitaround.co.za</a>

</div><!-- inin -->
</div><!-- invoicebox -->
</body>
</html>